﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000437 RID: 1079
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnhanceChessRogueBuffScRsp : IMessage<EnhanceChessRogueBuffScRsp>, IMessage, IEquatable<EnhanceChessRogueBuffScRsp>, IDeepCloneable<EnhanceChessRogueBuffScRsp>, IBufferMessage
	{
		// Token: 0x17000DE5 RID: 3557
		// (get) Token: 0x0600307F RID: 12415 RVA: 0x00085BAB File Offset: 0x00083DAB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnhanceChessRogueBuffScRsp> Parser
		{
			get
			{
				return EnhanceChessRogueBuffScRsp._parser;
			}
		}

		// Token: 0x17000DE6 RID: 3558
		// (get) Token: 0x06003080 RID: 12416 RVA: 0x00085BB2 File Offset: 0x00083DB2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnhanceChessRogueBuffScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000DE7 RID: 3559
		// (get) Token: 0x06003081 RID: 12417 RVA: 0x00085BC4 File Offset: 0x00083DC4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnhanceChessRogueBuffScRsp.Descriptor;
			}
		}

		// Token: 0x06003082 RID: 12418 RVA: 0x00085BCB File Offset: 0x00083DCB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnhanceChessRogueBuffScRsp()
		{
		}

		// Token: 0x06003083 RID: 12419 RVA: 0x00085BD4 File Offset: 0x00083DD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnhanceChessRogueBuffScRsp(EnhanceChessRogueBuffScRsp other) : this()
		{
			this.isSuccess_ = other.isSuccess_;
			this.retcode_ = other.retcode_;
			this.buffEnhanceInfo_ = ((other.buffEnhanceInfo_ != null) ? other.buffEnhanceInfo_.Clone() : null);
			this.rogueBuff_ = ((other.rogueBuff_ != null) ? other.rogueBuff_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06003084 RID: 12420 RVA: 0x00085C48 File Offset: 0x00083E48
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnhanceChessRogueBuffScRsp Clone()
		{
			return new EnhanceChessRogueBuffScRsp(this);
		}

		// Token: 0x17000DE8 RID: 3560
		// (get) Token: 0x06003085 RID: 12421 RVA: 0x00085C50 File Offset: 0x00083E50
		// (set) Token: 0x06003086 RID: 12422 RVA: 0x00085C58 File Offset: 0x00083E58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsSuccess
		{
			get
			{
				return this.isSuccess_;
			}
			set
			{
				this.isSuccess_ = value;
			}
		}

		// Token: 0x17000DE9 RID: 3561
		// (get) Token: 0x06003087 RID: 12423 RVA: 0x00085C61 File Offset: 0x00083E61
		// (set) Token: 0x06003088 RID: 12424 RVA: 0x00085C69 File Offset: 0x00083E69
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17000DEA RID: 3562
		// (get) Token: 0x06003089 RID: 12425 RVA: 0x00085C72 File Offset: 0x00083E72
		// (set) Token: 0x0600308A RID: 12426 RVA: 0x00085C7A File Offset: 0x00083E7A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueBuffEnhanceList BuffEnhanceInfo
		{
			get
			{
				return this.buffEnhanceInfo_;
			}
			set
			{
				this.buffEnhanceInfo_ = value;
			}
		}

		// Token: 0x17000DEB RID: 3563
		// (get) Token: 0x0600308B RID: 12427 RVA: 0x00085C83 File Offset: 0x00083E83
		// (set) Token: 0x0600308C RID: 12428 RVA: 0x00085C8B File Offset: 0x00083E8B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueCommonBuff RogueBuff
		{
			get
			{
				return this.rogueBuff_;
			}
			set
			{
				this.rogueBuff_ = value;
			}
		}

		// Token: 0x0600308D RID: 12429 RVA: 0x00085C94 File Offset: 0x00083E94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnhanceChessRogueBuffScRsp);
		}

		// Token: 0x0600308E RID: 12430 RVA: 0x00085CA4 File Offset: 0x00083EA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnhanceChessRogueBuffScRsp other)
		{
			return other != null && (other == this || (this.IsSuccess == other.IsSuccess && this.Retcode == other.Retcode && object.Equals(this.BuffEnhanceInfo, other.BuffEnhanceInfo) && object.Equals(this.RogueBuff, other.RogueBuff) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600308F RID: 12431 RVA: 0x00085D18 File Offset: 0x00083F18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.IsSuccess)
			{
				num ^= this.IsSuccess.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.buffEnhanceInfo_ != null)
			{
				num ^= this.BuffEnhanceInfo.GetHashCode();
			}
			if (this.rogueBuff_ != null)
			{
				num ^= this.RogueBuff.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003090 RID: 12432 RVA: 0x00085D9C File Offset: 0x00083F9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06003091 RID: 12433 RVA: 0x00085DA4 File Offset: 0x00083FA4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06003092 RID: 12434 RVA: 0x00085DB0 File Offset: 0x00083FB0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsSuccess)
			{
				output.WriteRawTag(24);
				output.WriteBool(this.IsSuccess);
			}
			if (this.rogueBuff_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.RogueBuff);
			}
			if (this.buffEnhanceInfo_ != null)
			{
				output.WriteRawTag(74);
				output.WriteMessage(this.BuffEnhanceInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06003093 RID: 12435 RVA: 0x00085E44 File Offset: 0x00084044
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.IsSuccess)
			{
				num += 2;
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.buffEnhanceInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BuffEnhanceInfo);
			}
			if (this.rogueBuff_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueBuff);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06003094 RID: 12436 RVA: 0x00085EC0 File Offset: 0x000840C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnhanceChessRogueBuffScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.IsSuccess)
			{
				this.IsSuccess = other.IsSuccess;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.buffEnhanceInfo_ != null)
			{
				if (this.buffEnhanceInfo_ == null)
				{
					this.BuffEnhanceInfo = new ChessRogueBuffEnhanceList();
				}
				this.BuffEnhanceInfo.MergeFrom(other.BuffEnhanceInfo);
			}
			if (other.rogueBuff_ != null)
			{
				if (this.rogueBuff_ == null)
				{
					this.RogueBuff = new RogueCommonBuff();
				}
				this.RogueBuff.MergeFrom(other.RogueBuff);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06003095 RID: 12437 RVA: 0x00085F68 File Offset: 0x00084168
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06003096 RID: 12438 RVA: 0x00085F74 File Offset: 0x00084174
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 34U)
				{
					if (num == 24U)
					{
						this.IsSuccess = input.ReadBool();
						continue;
					}
					if (num == 34U)
					{
						if (this.rogueBuff_ == null)
						{
							this.RogueBuff = new RogueCommonBuff();
						}
						input.ReadMessage(this.RogueBuff);
						continue;
					}
				}
				else
				{
					if (num == 74U)
					{
						if (this.buffEnhanceInfo_ == null)
						{
							this.BuffEnhanceInfo = new ChessRogueBuffEnhanceList();
						}
						input.ReadMessage(this.BuffEnhanceInfo);
						continue;
					}
					if (num == 104U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001321 RID: 4897
		private static readonly MessageParser<EnhanceChessRogueBuffScRsp> _parser = new MessageParser<EnhanceChessRogueBuffScRsp>(() => new EnhanceChessRogueBuffScRsp());

		// Token: 0x04001322 RID: 4898
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001323 RID: 4899
		public const int IsSuccessFieldNumber = 3;

		// Token: 0x04001324 RID: 4900
		private bool isSuccess_;

		// Token: 0x04001325 RID: 4901
		public const int RetcodeFieldNumber = 13;

		// Token: 0x04001326 RID: 4902
		private uint retcode_;

		// Token: 0x04001327 RID: 4903
		public const int BuffEnhanceInfoFieldNumber = 9;

		// Token: 0x04001328 RID: 4904
		private ChessRogueBuffEnhanceList buffEnhanceInfo_;

		// Token: 0x04001329 RID: 4905
		public const int RogueBuffFieldNumber = 4;

		// Token: 0x0400132A RID: 4906
		private RogueCommonBuff rogueBuff_;
	}
}
